package cn.amaake.magicplugin.rpc.config;


import org.apache.dubbo.config.ProtocolConfig;
import org.apache.dubbo.config.RegistryConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * nacos 配置文件
 */
@ConfigurationProperties(prefix = "magic-api.dubbo")
public class DubboConfig {
    /*
    * 详细参数看这里
    * https://cn.dubbo.apache.org/zh-cn/overview/mannual/java-sdk/tasks/service-discovery/nacos/
    * */
    private RegistryConfig  registry;

    private ProtocolConfig protocol;

    public ProtocolConfig getProtocol() {
        return protocol;
    }

    public void setProtocol(ProtocolConfig protocol) {
        this.protocol = protocol;
    }

    public RegistryConfig getRegistry() {
        return registry;
    }

    public void setRegistry(RegistryConfig registry) {
        this.registry = registry;
    }
}
